\hypertarget{fatfs__tests_8c}{}\section{fatfs.\+sup/fatfs\+\_\+tests.c File Reference}
\label{fatfs__tests_8c}\index{fatfs.\+sup/fatfs\+\_\+tests.\+c@{fatfs.\+sup/fatfs\+\_\+tests.\+c}}
{\ttfamily \#include \char`\"{}user\+\_\+config.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}fatfs.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}lib/time.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}lib/stringsup.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}printf/mathio.\+h\char`\"{}}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{fatfs__tests_8c_ad16bc1913c19300dba43a07006c9ac52}{fatfs\+\_\+help} (int full)
\begin{DoxyCompactList}\small\item\em Display Fat\+Fs test diagnostics help menu. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} int \hyperlink{fatfs__tests_8c_adc8904337a4bee5420ecc3527864f844}{fatfs\+\_\+tests} (int argc, char $\ast$argv\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Fat\+Fs test parser. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{fatfs__tests_8c_ad5fed10f1507f55cfea45f5e3cb8c5d5}{mmc\+\_\+test} (void)
\begin{DoxyCompactList}\small\item\em Perform key Fat\+Fs diagnostics tests. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{fatfs__tests_8c_a5306e261e84e6700704633a53153857c}{fatfs\+\_\+ls} (char $\ast$name)
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\index{fatfs\+\_\+tests.\+c@{fatfs\+\_\+tests.\+c}!fatfs\+\_\+help@{fatfs\+\_\+help}}
\index{fatfs\+\_\+help@{fatfs\+\_\+help}!fatfs\+\_\+tests.\+c@{fatfs\+\_\+tests.\+c}}
\subsubsection[{\texorpdfstring{fatfs\+\_\+help(int full)}{fatfs_help(int full)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void fatfs\+\_\+help (
\begin{DoxyParamCaption}
\item[{int}]{full}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__tests_8c_ad16bc1913c19300dba43a07006c9ac52}{}\label{fatfs__tests_8c_ad16bc1913c19300dba43a07006c9ac52}


Display Fat\+Fs test diagnostics help menu. 

\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 46 of file fatfs\+\_\+tests.\+c.



Referenced by fatfs\+\_\+tests(), and user\+\_\+help().

\index{fatfs\+\_\+tests.\+c@{fatfs\+\_\+tests.\+c}!fatfs\+\_\+ls@{fatfs\+\_\+ls}}
\index{fatfs\+\_\+ls@{fatfs\+\_\+ls}!fatfs\+\_\+tests.\+c@{fatfs\+\_\+tests.\+c}}
\subsubsection[{\texorpdfstring{fatfs\+\_\+ls(char $\ast$name)}{fatfs_ls(char *name)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void fatfs\+\_\+ls (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{name}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__tests_8c_a5306e261e84e6700704633a53153857c}{}\label{fatfs__tests_8c_a5306e261e84e6700704633a53153857c}

\begin{DoxyItemize}
\item Credit\+: part of Fat\+Fs avr example project (C)ChaN, 2013.
\end{DoxyItemize}


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em ptr} & pathname of directory to list\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{fatfs__sup_8c_a11c6644c2b989d1ac2492b30b80e4ead}{fatfs\+\_\+filinfo\+\_\+list()}. 
\end{DoxySeeAlso}
\begin{DoxyReturn}{Returns}
void. 
\end{DoxyReturn}


Definition at line 313 of file fatfs\+\_\+tests.\+c.



Referenced by fatfs\+\_\+tests(), and mmc\+\_\+test().

\index{fatfs\+\_\+tests.\+c@{fatfs\+\_\+tests.\+c}!fatfs\+\_\+tests@{fatfs\+\_\+tests}}
\index{fatfs\+\_\+tests@{fatfs\+\_\+tests}!fatfs\+\_\+tests.\+c@{fatfs\+\_\+tests.\+c}}
\subsubsection[{\texorpdfstring{fatfs\+\_\+tests(int argc, char $\ast$argv[])}{fatfs_tests(int argc, char *argv[])}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} int fatfs\+\_\+tests (
\begin{DoxyParamCaption}
\item[{int}]{argc, }
\item[{char $\ast$}]{argv\mbox{[}$\,$\mbox{]}}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__tests_8c_adc8904337a4bee5420ecc3527864f844}{}\label{fatfs__tests_8c_adc8904337a4bee5420ecc3527864f844}


Fat\+Fs test parser. 


\begin{DoxyItemize}
\item Keywords and arguments are matched against fatfs test functions If ther are matched the function along with its argements are called.
\end{DoxyItemize}


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em str} & User supplied command line with Fat\+Fs test and arguments.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 The ruturn code indicates a command matched. 

0 if no rules matched 
\end{DoxyReturn}


Definition at line 101 of file fatfs\+\_\+tests.\+c.



Referenced by user\+\_\+tests().

\index{fatfs\+\_\+tests.\+c@{fatfs\+\_\+tests.\+c}!mmc\+\_\+test@{mmc\+\_\+test}}
\index{mmc\+\_\+test@{mmc\+\_\+test}!fatfs\+\_\+tests.\+c@{fatfs\+\_\+tests.\+c}}
\subsubsection[{\texorpdfstring{mmc\+\_\+test(void)}{mmc_test(void)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void mmc\+\_\+test (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__tests_8c_ad5fed10f1507f55cfea45f5e3cb8c5d5}{}\label{fatfs__tests_8c_ad5fed10f1507f55cfea45f5e3cb8c5d5}


Perform key Fat\+Fs diagnostics tests. 


\begin{DoxyItemize}
\item Perform all basic file tests
\item Assumes the device is formatted
\end{DoxyItemize}

\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 271 of file fatfs\+\_\+tests.\+c.



Referenced by fatfs\+\_\+tests().

